package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: 王秀田
 * @date: 2024/11/13 16:21
 * @description: 积分商品表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_integral_goods")
@ApiModel(value="GeConIntegralGoods对象", description="积分商品表")
public class GeConIntegralGoods implements Serializable {

    private static final long serialVersionUID = -6054548732160183543L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品图片")
    private String picture;

    @ApiModelProperty(value = "商品图片")
    @TableField(exist = false)
    private List<String> images;

    @ApiModelProperty(value = "商品类型")
    private String type;

    @ApiModelProperty(value = "商品类型文本")
    @TableField(exist = false)
    private String typeText;

    @ApiModelProperty(value = "商品数量")
    private Integer num;

    @ApiModelProperty(value = "需兑换积分数")
    private Integer integral;

    @ApiModelProperty(value = "商品状态（‘0’：下架，‘1’：上架）")
    private String status;

    @ApiModelProperty(value = "商品状态文本")
    @TableField(exist = false)
    private String statusText;

    @ApiModelProperty(value = "删除标识（‘0’：正常，‘1’：删除）")
    private String deleteFlag;

    @ApiModelProperty(value = "删除标识文本")
    @TableField(exist = false)
    private String deleteFlagText;

    @ApiModelProperty(value = "商品详情")
    private String details;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime deleteTime;

    @ApiModelProperty(value = "上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime upperTime;

    @ApiModelProperty(value = "下架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime lowerTime;

    @ApiModelProperty(value = "是否精选（0：否，1：是）")
    private Integer isChoice;

    @ApiModelProperty(value = "已经兑换数量")
    private Integer alreadyNum;

    @ApiModelProperty(value = "备注")
    @TableField(exist = false)
    private String remark;

    @ApiModelProperty(value = "地址ID")
    @TableField(exist = false)
    private Integer addressId;
}
